package cn.bdqn.mallmgr.dao;

import cn.bdqn.mallmgr.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author
 * @create 2022-07-12 11:31
 */
@Mapper
public interface UserMapper {
    /**
     * 登录
     *
     * @param userName 账号
     * @param password 密码
     * @return cn.bdqn.mallmgr.pojo.User
     */
    User login(@Param("userName") String userName, @Param("password") String password);

    /**
     * 注册
     *
     * @param user 注册用户
     * @return java.lang.Boolean
     */
    Integer register(@Param("user") User user);
}
